<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{$meta_title}</h2>
    </div>
    <?php if(empty($data['style_id'])):?>
    <form action="{:U('add')}" method="post" class="form-horizontal">
        <?php else:?>
        <form action="{:U('edit')}" method="post" class="form-horizontal">
            <input type="hidden" name="sid" value="{$data['style_id']}"/>

            <?php endif;?>
            <div class="form-item">
                <label class="item-label">所属标签</label>
                <div class="controls">
                    <select name="tag_id">
                        <volist name="tagList" id="vo">
                            <option value="{$vo.tag_id}" <eq name="data['tag_id']" value="$vo['tag_id']"> selected </eq>>{$vo.tag_name}</option>
                        </volist>
                    </select>
                </div>
            </div>
            <div class="form-item">
                <label class="item-label">风格名称<span class="check-tips">（必填项）</span></label>
                <div class="controls">
                    <input type="text" class="text input-large" name="style_name" value="{$data['style_name']}">
                </div>
            </div>

            <div class="form-item">
                <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
                <button class="btn btn-return" onclick="javascript:history.back(-1); return false;">返 回</button>
            </div>
        </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav("{:U('Style/add')}");
    </script>

</block>
